package com.ywq.wechatordersys.data;

import com.ywq.wechatordersys.enums.OrderStatus;
import com.ywq.wechatordersys.enums.PayStatus;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单主表
 */
@Entity
@Data
public class OrderMaster {


    /**
     * 订单id
     **/
    @Id
    private String orderId;
    /**
     * 买家名字
     **/
    private String buyerName;
    /**
     * 买家电话
     **/
    private String buyerPhone;
    /**
     * 买家地址
     **/
    private String buyerAddress;
    /**
     * 买家微信id
     **/
    private String buyerOpenid;
    /**
     * 订单名字
     **/
    private String orderName;
    /**
     * 订单总金额
     **/
    private BigDecimal orderAmount;
    /**
     * 订单状态
     **/
    private Integer orderStatus = OrderStatus.NEW.getCode();
    /**
     * 支付状态
     **/
    private Integer payStatus = PayStatus.WAIT.getCode();
    /**
     * 订单描述
     **/
    private String orderDescription;
    /**
     * 订单创建时间
     */

    private Date createTime;




}
